﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output method="xml" indent="yes" encoding="utf-8" media-type="text/xml" />
  <xsl:param name="relrootpath"/>
  <xsl:param name="eventname" />
  <xsl:include href="../Utility.xslt" />
  <xsl:template match="/Context">

    <Transform>
      <Content>
        <xsl:apply-templates select="Event[@Name=$eventname]">
        </xsl:apply-templates>
      </Content>
    </Transform>

  </xsl:template>

  <xsl:template match="Event[@Name='EventRequestApproved']">

    <div>
      <xsl:call-template name="IconSet">
        <xsl:with-param name="c">ns-calendar</xsl:with-param>
      </xsl:call-template>
      <span class="ctn-p-l">
      <xsl:text>你已被批准参加活动"</xsl:text>
      <a>
        <xsl:attribute name="href">
          <xsl:value-of select="$relrootpath"/>
          <xsl:text>/Mod/Events/View.aspx?id=</xsl:text>
          <xsl:value-of select="EventId"/>
        </xsl:attribute>
        <xsl:value-of select="EventName"/>
      </a>
      <xsl:text>"。</xsl:text>
      </span>
    </div>

  </xsl:template>

</xsl:stylesheet>
